<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
</head>
<body>
    <comp-nav-title></comp-nav-title>

    <h1>
        首页
    </h1>

    <!-- 通过DOM获取标签元素，通过innerHTML赋值实现新的HTML标签 -->
    <comp-nav-tab></comp-nav-tab>

    <!-- <iframe src="./comp-nav-tab.html" width="100" frameborder="0"></iframe> -->
    <script src="./comp-nav-tab.js"></script>
</body>
</html>